﻿namespace WMS6.Web.LoginServiceRef
{
    using System;
    using System.CodeDom.Compiler;
    using System.ComponentModel;
    using System.Diagnostics;
    using System.Runtime.CompilerServices;
    using System.Runtime.Serialization;

    [Serializable, DataContract(Name="SysLoginLogInfo", Namespace="http://schemas.datacontract.org/2004/07/WMS6.DataEntity"), DebuggerStepThrough, GeneratedCode("System.Runtime.Serialization", "3.0.0.0")]
    public class SysLoginLogInfo : IExtensibleDataObject, INotifyPropertyChanged
    {
        [OptionalField]
        private string CreatedByField;
        [OptionalField]
        private DateTime CreatedDateField;
        [NonSerialized]
        private ExtensionDataObject extensionDataField;
        [OptionalField]
        private string LoginIpAddressField;
        [OptionalField]
        private string LoginMacAddressField;
        [OptionalField]
        private string LoginMachineNameField;
        [OptionalField]
        private string LoginModeField;
        [OptionalField]
        private int LoginSequenceField;
        [OptionalField]
        private string LoginStatusField;
        [OptionalField]
        private DateTime LoginTimeField;
        [OptionalField]
        private string LoginUserIDField;
        [OptionalField]
        private string LoginUserNameField;
        [OptionalField]
        private DateTime LogoutTimeField;
        [OptionalField]
        private string UpdatedByField;
        [OptionalField]
        private DateTime UpdatedDateField;

        public event PropertyChangedEventHandler PropertyChanged;

        protected void RaisePropertyChanged(string propertyName)
        {
            PropertyChangedEventHandler propertyChanged = this.PropertyChanged;
            if (propertyChanged != null)
            {
                propertyChanged(this, new PropertyChangedEventArgs(propertyName));
            }
        }

        [DataMember]
        public string CreatedBy
        {
            get
            {
                return this.CreatedByField;
            }
            set
            {
                if (!object.ReferenceEquals(this.CreatedByField, value))
                {
                    this.CreatedByField = value;
                    this.RaisePropertyChanged("CreatedBy");
                }
            }
        }

        [DataMember]
        public DateTime CreatedDate
        {
            get
            {
                return this.CreatedDateField;
            }
            set
            {
                if (!this.CreatedDateField.Equals(value))
                {
                    this.CreatedDateField = value;
                    this.RaisePropertyChanged("CreatedDate");
                }
            }
        }

        [Browsable(false)]
        public ExtensionDataObject ExtensionData
        {
            get
            {
                return this.extensionDataField;
            }
            set
            {
                this.extensionDataField = value;
            }
        }

        [DataMember]
        public string LoginIpAddress
        {
            get
            {
                return this.LoginIpAddressField;
            }
            set
            {
                if (!object.ReferenceEquals(this.LoginIpAddressField, value))
                {
                    this.LoginIpAddressField = value;
                    this.RaisePropertyChanged("LoginIpAddress");
                }
            }
        }

        [DataMember]
        public string LoginMacAddress
        {
            get
            {
                return this.LoginMacAddressField;
            }
            set
            {
                if (!object.ReferenceEquals(this.LoginMacAddressField, value))
                {
                    this.LoginMacAddressField = value;
                    this.RaisePropertyChanged("LoginMacAddress");
                }
            }
        }

        [DataMember]
        public string LoginMachineName
        {
            get
            {
                return this.LoginMachineNameField;
            }
            set
            {
                if (!object.ReferenceEquals(this.LoginMachineNameField, value))
                {
                    this.LoginMachineNameField = value;
                    this.RaisePropertyChanged("LoginMachineName");
                }
            }
        }

        [DataMember]
        public string LoginMode
        {
            get
            {
                return this.LoginModeField;
            }
            set
            {
                if (!object.ReferenceEquals(this.LoginModeField, value))
                {
                    this.LoginModeField = value;
                    this.RaisePropertyChanged("LoginMode");
                }
            }
        }

        [DataMember]
        public int LoginSequence
        {
            get
            {
                return this.LoginSequenceField;
            }
            set
            {
                if (!this.LoginSequenceField.Equals(value))
                {
                    this.LoginSequenceField = value;
                    this.RaisePropertyChanged("LoginSequence");
                }
            }
        }

        [DataMember]
        public string LoginStatus
        {
            get
            {
                return this.LoginStatusField;
            }
            set
            {
                if (!object.ReferenceEquals(this.LoginStatusField, value))
                {
                    this.LoginStatusField = value;
                    this.RaisePropertyChanged("LoginStatus");
                }
            }
        }

        [DataMember]
        public DateTime LoginTime
        {
            get
            {
                return this.LoginTimeField;
            }
            set
            {
                if (!this.LoginTimeField.Equals(value))
                {
                    this.LoginTimeField = value;
                    this.RaisePropertyChanged("LoginTime");
                }
            }
        }

        [DataMember]
        public string LoginUserID
        {
            get
            {
                return this.LoginUserIDField;
            }
            set
            {
                if (!object.ReferenceEquals(this.LoginUserIDField, value))
                {
                    this.LoginUserIDField = value;
                    this.RaisePropertyChanged("LoginUserID");
                }
            }
        }

        [DataMember]
        public string LoginUserName
        {
            get
            {
                return this.LoginUserNameField;
            }
            set
            {
                if (!object.ReferenceEquals(this.LoginUserNameField, value))
                {
                    this.LoginUserNameField = value;
                    this.RaisePropertyChanged("LoginUserName");
                }
            }
        }

        [DataMember]
        public DateTime LogoutTime
        {
            get
            {
                return this.LogoutTimeField;
            }
            set
            {
                if (!this.LogoutTimeField.Equals(value))
                {
                    this.LogoutTimeField = value;
                    this.RaisePropertyChanged("LogoutTime");
                }
            }
        }

        [DataMember]
        public string UpdatedBy
        {
            get
            {
                return this.UpdatedByField;
            }
            set
            {
                if (!object.ReferenceEquals(this.UpdatedByField, value))
                {
                    this.UpdatedByField = value;
                    this.RaisePropertyChanged("UpdatedBy");
                }
            }
        }

        [DataMember]
        public DateTime UpdatedDate
        {
            get
            {
                return this.UpdatedDateField;
            }
            set
            {
                if (!this.UpdatedDateField.Equals(value))
                {
                    this.UpdatedDateField = value;
                    this.RaisePropertyChanged("UpdatedDate");
                }
            }
        }
    }
}

